package Conn;

import java.sql.Connection;
import java.sql.DriverManager;

public class Conn {
    public Connection getConn(){
        try{
            Class.forName("com.mysql.jdbc.Driver");
            String url = "jdbc:mysql://localhost:3306/ly";
            Connection coon = DriverManager.getConnection(url,"root","root");
            return coon;
        }catch (Exception e){
            e.printStackTrace();
            return null;
        }
    }
}
